package demo2;

public class Text {
    public static void main(String[] args) {

        Text t = new Text();
        t.text(new RocketBird());
        t.text(new SplitBird());
    }

    public void text(Bird bird){
        bird.fly();
        bird.twitter();
        bird.attack();
    }
}
